package com.bdqn.design;

import com.bdqn.design.proxy.IntermediarySubclass;
import com.bdqn.design.proxy.RealBuyer;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

/**
 * Test04AgencyBuyerSubclass
 *
 * @author LILIBO
 * @since 2024/7/4
 */
public class Test04AgencyBuyerSubclass {

    /**
     * 日志
     */
    private static final Logger log = LogManager.getLogger(Test04AgencyBuyerSubclass.class);

    public static void main(String[] args) {

        // 真实买家找到代理对象实现买房
        RealBuyer realBuyer = new IntermediarySubclass();

        // 看房
        realBuyer.havealook();
    }

}
